package servlet;

import java.io.IOException;
import java.util.ArrayList;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;


public class Deletar extends HttpServlet {
	/**
	 * 
	 */
	private static final long serialVersionUID = -8624229242200219751L;

	@Override
	protected void doGet(HttpServletRequest request, 
						HttpServletResponse response)
						throws ServletException, IOException {
		
		HttpSession session = request.getSession();
		@SuppressWarnings("unchecked")
		ArrayList<Cliente> lista = (ArrayList<Cliente>) session.getAttribute("lista");
		
		
		
		session.setAttribute("lista", lista);
		
		RequestDispatcher dispatcher = request.getRequestDispatcher("gerar_tabela.jsp");
		dispatcher.forward(request, response);
	}
}
